clc
close all
clear all
% This file is trying to prepare .mat files for PdrBoxplot4Requirements.m
%
%%============================== For boxplot===================================
RID_LARGE_5_ROUND= 0; 
RID_5_ROUND= 0; 
RID_1_ROUND= 0; 
PRKS_5_ROUND = 0;
PRKS_1_ROUND = 0;
VARIANTS_1_ROUND = 0;
VARIANTS_5_ROUND = 0;
PRKS_HETRO_5_ROUND = 0;
PRKS_LARGE_5_ROUND = 0;
MIXED_PRKS_10_ROUND = 0;
PRKS_LIGHT_5_ROUND = 0;
%%============================== For Bargraph==================================
SMALL_HEAVY_TRAFFIC_BARGRAPH = 0; %By default, 5 runs.
SMALL_LIGHT_TRAFFIC_BARGRAPH = 0;
LARGE_HEAVY_TRAFFIC_BARGRAPH = 1;
%%============================== For variants Bargraph=========================
VARIANTS_1_ROUND_BARGRAPH = 0;
%%============================== End Macro Def=================================
if (RID_1_ROUND == 1)
  pdr70 = GetStableRegionPdrArray('RID70_stable_pdr_rd1.txt');
  pdr80 = GetStableRegionPdrArray('RID80_stable_pdr_rd1.txt');
  pdr90 = GetStableRegionPdrArray('RID90_stable_pdr_rd1.txt');
  pdr95 = GetStableRegionPdrArray('RID95_stable_pdr_rd1.txt');
  save pdr_samples.mat
end


if (RID_5_ROUND == 1)
  pdr701 = GetStableRegionPdrArray('RID70_stable_pdr_rd1.txt');
  pdr702 = GetStableRegionPdrArray('RID70_stable_pdr_rd2.txt');
  pdr703 = GetStableRegionPdrArray('RID70_stable_pdr_rd3.txt');
  pdr704 = GetStableRegionPdrArray('RID70_stable_pdr_rd4.txt');
  pdr705 = GetStableRegionPdrArray('RID70_stable_pdr_rd5.txt');
  pdr70 = [pdr701; pdr702;pdr703; pdr704; pdr705];

  pdr801 = GetStableRegionPdrArray('RID80_stable_pdr_rd1.txt');
  pdr802 = GetStableRegionPdrArray('RID80_stable_pdr_rd2.txt');
  pdr803 = GetStableRegionPdrArray('RID80_stable_pdr_rd3.txt');
  pdr804 = GetStableRegionPdrArray('RID80_stable_pdr_rd4.txt');
  pdr805 = GetStableRegionPdrArray('RID80_stable_pdr_rd5.txt');
  pdr80 = [pdr801; pdr802;pdr803; pdr804; pdr805];

  pdr901 = GetStableRegionPdrArray('RID90_stable_pdr_rd1.txt');
  pdr902 = GetStableRegionPdrArray('RID90_stable_pdr_rd2.txt');
  pdr903 = GetStableRegionPdrArray('RID90_stable_pdr_rd3.txt');
  pdr904 = GetStableRegionPdrArray('RID90_stable_pdr_rd4.txt');
  pdr905 = GetStableRegionPdrArray('RID90_stable_pdr_rd5.txt');
  pdr90 = [pdr901; pdr902;pdr903; pdr904; pdr905];

  pdr951 = GetStableRegionPdrArray('RID95_stable_pdr_rd1.txt');
  pdr952 = GetStableRegionPdrArray('RID95_stable_pdr_rd2.txt');
  pdr953 = GetStableRegionPdrArray('RID95_stable_pdr_rd3.txt');
  pdr954 = GetStableRegionPdrArray('RID95_stable_pdr_rd4.txt');
  pdr955 = GetStableRegionPdrArray('RID95_stable_pdr_rd5.txt');
  pdr95 = [pdr951; pdr952;pdr953; pdr954; pdr955];
  save pdr_samples.mat
end

if (RID_LARGE_5_ROUND == 1)
  pdr701 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd1.txt');
  pdr702 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd2.txt');
  pdr703 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd3.txt');
  pdr704 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd4.txt');
  pdr705 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd5.txt');
  pdr70 = [pdr701; pdr702;pdr703; pdr704; pdr705];

  pdr801 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd1.txt');
  pdr802 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd2.txt');
  pdr803 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd3.txt');
  pdr804 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd4.txt');
  pdr805 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd5.txt');
  pdr80 = [pdr801; pdr802;pdr803; pdr804; pdr805];

  pdr901 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd1.txt');
  pdr902 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd2.txt');
  pdr903 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd3.txt');
  pdr904 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd4.txt');
  pdr905 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd5.txt');
  pdr90 = [pdr901; pdr902;pdr903; pdr904; pdr905];

  pdr951 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd1.txt');
  pdr952 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd2.txt');
  pdr953 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd3.txt');
  pdr954 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd4.txt');
  pdr955 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd5.txt');
  pdr95 = [pdr951; pdr952;pdr953; pdr954; pdr955];
  save pdr_samples.mat
end

if (PRKS_1_ROUND== 1)
  pdr95 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd1.txt');

  pdr90 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd1.txt');

  pdr80 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd1.txt');

  pdr70 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd1.txt');
  save pdr_samples.mat
end

if VARIANTS_1_ROUND  == 1
  prks95 = GetStableRegionPdrArray ('PRKS95_stable_pdr_rd1.txt');
  prks90 = GetStableRegionPdrArray ('PRKS90_stable_pdr_rd1.txt');
  prks80 = GetStableRegionPdrArray ('PRKS80_stable_pdr_rd1.txt');
  prks70 = GetStableRegionPdrArray ('PRKS70_stable_pdr_rd1.txt');

  prks_l95 = GetStableRegionPdrArray ('PRKS_L95_stable_pdr_rd1.txt');
  prks_l90 = GetStableRegionPdrArray ('PRKS_L90_stable_pdr_rd1.txt');
  prks_l80 = GetStableRegionPdrArray ('PRKS_L80_stable_pdr_rd1.txt');
  prks_l70 = GetStableRegionPdrArray ('PRKS_L70_stable_pdr_rd1.txt');

  prks_r95 = GetStableRegionPdrArray ('PRKS_R95_stable_pdr_rd1.txt');
  prks_r90 = GetStableRegionPdrArray ('PRKS_R90_stable_pdr_rd1.txt');
  prks_r80 = GetStableRegionPdrArray ('PRKS_R80_stable_pdr_rd1.txt');
  prks_r70 = GetStableRegionPdrArray ('PRKS_R70_stable_pdr_rd1.txt');
  save pdr_samples.mat
end

if VARIANTS_5_ROUND == 1
  prks951 = GetStableRegionPdrArray ('PRKS95_stable_pdr_rd1.txt');
  prks901 = GetStableRegionPdrArray ('PRKS90_stable_pdr_rd1.txt');
  prks801 = GetStableRegionPdrArray ('PRKS80_stable_pdr_rd1.txt');
  prks701 = GetStableRegionPdrArray ('PRKS70_stable_pdr_rd1.txt');

  prks952 = GetStableRegionPdrArray ('PRKS95_stable_pdr_rd2.txt');
  prks902 = GetStableRegionPdrArray ('PRKS90_stable_pdr_rd2.txt');
  prks802 = GetStableRegionPdrArray ('PRKS80_stable_pdr_rd2.txt');
  prks702 = GetStableRegionPdrArray ('PRKS70_stable_pdr_rd2.txt');

  prks953 = GetStableRegionPdrArray ('PRKS95_stable_pdr_rd3.txt');
  prks903 = GetStableRegionPdrArray ('PRKS90_stable_pdr_rd3.txt');
  prks803 = GetStableRegionPdrArray ('PRKS80_stable_pdr_rd3.txt');
  prks703 = GetStableRegionPdrArray ('PRKS70_stable_pdr_rd3.txt');

  prks954 = GetStableRegionPdrArray ('PRKS95_stable_pdr_rd4.txt');
  prks904 = GetStableRegionPdrArray ('PRKS90_stable_pdr_rd4.txt');
  prks804 = GetStableRegionPdrArray ('PRKS80_stable_pdr_rd4.txt');
  prks704 = GetStableRegionPdrArray ('PRKS70_stable_pdr_rd4.txt');

  prks954 = GetStableRegionPdrArray ('PRKS95_stable_pdr_rd4.txt');
  prks904 = GetStableRegionPdrArray ('PRKS90_stable_pdr_rd4.txt');
  prks804 = GetStableRegionPdrArray ('PRKS80_stable_pdr_rd4.txt');
  prks704 = GetStableRegionPdrArray ('PRKS70_stable_pdr_rd4.txt');

  prks955 = GetStableRegionPdrArray ('PRKS95_stable_pdr_rd5.txt');
  prks905 = GetStableRegionPdrArray ('PRKS90_stable_pdr_rd5.txt');
  prks805 = GetStableRegionPdrArray ('PRKS80_stable_pdr_rd5.txt');
  prks705 = GetStableRegionPdrArray ('PRKS70_stable_pdr_rd5.txt');

  prks95 = [prks951; prks952; prks953; prks954; prks955];
  prks90 = [prks901; prks902; prks903; prks904; prks905];
  prks80 = [prks801; prks802; prks803; prks804; prks805];
  prks70 = [prks701; prks702; prks703; prks704; prks705];

  prks_l951 = GetStableRegionPdrArray ('PRKS_L95_stable_pdr_rd1.txt');
  prks_l901 = GetStableRegionPdrArray ('PRKS_L90_stable_pdr_rd1.txt');
  prks_l801 = GetStableRegionPdrArray ('PRKS_L80_stable_pdr_rd1.txt');
  prks_l701 = GetStableRegionPdrArray ('PRKS_L70_stable_pdr_rd1.txt');

  prks_l952 = GetStableRegionPdrArray ('PRKS_L95_stable_pdr_rd2.txt');
  prks_l902 = GetStableRegionPdrArray ('PRKS_L90_stable_pdr_rd2.txt');
  prks_l802 = GetStableRegionPdrArray ('PRKS_L80_stable_pdr_rd2.txt');
  prks_l702 = GetStableRegionPdrArray ('PRKS_L70_stable_pdr_rd2.txt');

  prks_l953 = GetStableRegionPdrArray ('PRKS_L95_stable_pdr_rd3.txt');
  prks_l903 = GetStableRegionPdrArray ('PRKS_L90_stable_pdr_rd3.txt');
  prks_l803 = GetStableRegionPdrArray ('PRKS_L80_stable_pdr_rd3.txt');
  prks_l703 = GetStableRegionPdrArray ('PRKS_L70_stable_pdr_rd3.txt');

  prks_l954 = GetStableRegionPdrArray ('PRKS_L95_stable_pdr_rd4.txt');
  prks_l904 = GetStableRegionPdrArray ('PRKS_L90_stable_pdr_rd4.txt');
  prks_l804 = GetStableRegionPdrArray ('PRKS_L80_stable_pdr_rd4.txt');
  prks_l704 = GetStableRegionPdrArray ('PRKS_L70_stable_pdr_rd4.txt');

  prks_l954 = GetStableRegionPdrArray ('PRKS_L95_stable_pdr_rd4.txt');
  prks_l904 = GetStableRegionPdrArray ('PRKS_L90_stable_pdr_rd4.txt');
  prks_l804 = GetStableRegionPdrArray ('PRKS_L80_stable_pdr_rd4.txt');
  prks_l704 = GetStableRegionPdrArray ('PRKS_L70_stable_pdr_rd4.txt');

  prks_l955 = GetStableRegionPdrArray ('PRKS_L95_stable_pdr_rd5.txt');
  prks_l905 = GetStableRegionPdrArray ('PRKS_L90_stable_pdr_rd5.txt');
  prks_l805 = GetStableRegionPdrArray ('PRKS_L80_stable_pdr_rd5.txt');
  prks_l705 = GetStableRegionPdrArray ('PRKS_L70_stable_pdr_rd5.txt');

  prks_l95 = [prks_l951; prks_l952; prks_l953; prks_l954; prks_l955];
  prks_l90 = [prks_l901; prks_l902; prks_l903; prks_l904; prks_l905];
  prks_l80 = [prks_l801; prks_l802; prks_l803; prks_l804; prks_l805];
  prks_l70 = [prks_l701; prks_l702; prks_l703; prks_l704; prks_l705];

  prks_r951 = GetStableRegionPdrArray ('PRKS_R95_stable_pdr_rd1.txt');
  prks_r901 = GetStableRegionPdrArray ('PRKS_R90_stable_pdr_rd1.txt');
  prks_r801 = GetStableRegionPdrArray ('PRKS_R80_stable_pdr_rd1.txt');
  prks_r701 = GetStableRegionPdrArray ('PRKS_R70_stable_pdr_rd1.txt');

  prks_r952 = GetStableRegionPdrArray ('PRKS_R95_stable_pdr_rd2.txt');
  prks_r902 = GetStableRegionPdrArray ('PRKS_R90_stable_pdr_rd2.txt');
  prks_r802 = GetStableRegionPdrArray ('PRKS_R80_stable_pdr_rd2.txt');
  prks_r702 = GetStableRegionPdrArray ('PRKS_R70_stable_pdr_rd2.txt');

  prks_r953 = GetStableRegionPdrArray ('PRKS_R95_stable_pdr_rd3.txt');
  prks_r903 = GetStableRegionPdrArray ('PRKS_R90_stable_pdr_rd3.txt');
  prks_r803 = GetStableRegionPdrArray ('PRKS_R80_stable_pdr_rd3.txt');
  prks_r703 = GetStableRegionPdrArray ('PRKS_R70_stable_pdr_rd3.txt');

  prks_r954 = GetStableRegionPdrArray ('PRKS_R95_stable_pdr_rd4.txt');
  prks_r904 = GetStableRegionPdrArray ('PRKS_R90_stable_pdr_rd4.txt');
  prks_r804 = GetStableRegionPdrArray ('PRKS_R80_stable_pdr_rd4.txt');
  prks_r704 = GetStableRegionPdrArray ('PRKS_R70_stable_pdr_rd4.txt');

  prks_r954 = GetStableRegionPdrArray ('PRKS_R95_stable_pdr_rd4.txt');
  prks_r904 = GetStableRegionPdrArray ('PRKS_R90_stable_pdr_rd4.txt');
  prks_r804 = GetStableRegionPdrArray ('PRKS_R80_stable_pdr_rd4.txt');
  prks_r704 = GetStableRegionPdrArray ('PRKS_R70_stable_pdr_rd4.txt');

  prks_r955 = GetStableRegionPdrArray ('PRKS_R95_stable_pdr_rd5.txt');
  prks_r905 = GetStableRegionPdrArray ('PRKS_R90_stable_pdr_rd5.txt');
  prks_r805 = GetStableRegionPdrArray ('PRKS_R80_stable_pdr_rd5.txt');
  prks_r705 = GetStableRegionPdrArray ('PRKS_R70_stable_pdr_rd5.txt');

  prks_r95 = [prks_r951; prks_r952; prks_r953; prks_r954; prks_r955];
  prks_r90 = [prks_r901; prks_r902; prks_r903; prks_r904; prks_r905];
  prks_r80 = [prks_r801; prks_r802; prks_r803; prks_r804; prks_r805];
  prks_r70 = [prks_r701; prks_r702; prks_r703; prks_r704; prks_r705];

  save pdr_samples.mat
end

if (PRKS_5_ROUND== 1)
  pdr951 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd1.txt');
  pdr952 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd2.txt');
  pdr953 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd3.txt');
  pdr954 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd4.txt');
  pdr955 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd5.txt');
  pdr95 = [pdr951; pdr952;pdr953; pdr954; pdr955];

  pdr901 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd1.txt');
  pdr902 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd2.txt');
  pdr903 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd3.txt');
  pdr904 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd4.txt');
  pdr905 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd5.txt');
  pdr90 = [pdr901; pdr902;pdr903; pdr904; pdr905];

  pdr801 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd1.txt');
  pdr802 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd2.txt');
  pdr803 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd3.txt');
  pdr804 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd4.txt');
  pdr805 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd5.txt');
  pdr80 = [pdr801; pdr802;pdr803; pdr804; pdr805];

  pdr701 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd1.txt');
  pdr702 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd2.txt');
  pdr703 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd3.txt');
  pdr704 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd4.txt');
  pdr705 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd5.txt');
  pdr70 = [pdr701; pdr702;pdr703; pdr704; pdr705];
  save pdr_samples.mat
end
if ( PRKS_HETRO_5_ROUND  == 1)
  pdr701 = GetStableRegionPdrArray('HETRO70_stable_pdr_rd1.txt');
  pdr702 = GetStableRegionPdrArray('HETRO70_stable_pdr_rd2.txt');
  pdr703 = GetStableRegionPdrArray('HETRO70_stable_pdr_rd3.txt');
  pdr704 = GetStableRegionPdrArray('HETRO70_stable_pdr_rd4.txt');
  pdr705 = GetStableRegionPdrArray('HETRO70_stable_pdr_rd5.txt');
  pdr70 = [pdr701; pdr702;pdr703; pdr704; pdr705];

  pdr801 = GetStableRegionPdrArray('HETRO80_stable_pdr_rd1.txt');
  pdr802 = GetStableRegionPdrArray('HETRO80_stable_pdr_rd2.txt');
  pdr803 = GetStableRegionPdrArray('HETRO80_stable_pdr_rd3.txt');
  pdr804 = GetStableRegionPdrArray('HETRO80_stable_pdr_rd4.txt');
  pdr805 = GetStableRegionPdrArray('HETRO80_stable_pdr_rd5.txt');
  pdr80 = [pdr801; pdr802;pdr803; pdr804; pdr805];

  pdr901 = GetStableRegionPdrArray('HETRO90_stable_pdr_rd1.txt');
  pdr902 = GetStableRegionPdrArray('HETRO90_stable_pdr_rd2.txt');
  pdr903 = GetStableRegionPdrArray('HETRO90_stable_pdr_rd3.txt');
  pdr904 = GetStableRegionPdrArray('HETRO90_stable_pdr_rd4.txt');
  pdr905 = GetStableRegionPdrArray('HETRO90_stable_pdr_rd5.txt');
  pdr90 = [pdr901; pdr902;pdr903; pdr904; pdr905];

  pdr951 = GetStableRegionPdrArray('HETRO95_stable_pdr_rd1.txt');
  pdr952 = GetStableRegionPdrArray('HETRO95_stable_pdr_rd2.txt');
  pdr953 = GetStableRegionPdrArray('HETRO95_stable_pdr_rd3.txt');
  pdr954 = GetStableRegionPdrArray('HETRO95_stable_pdr_rd4.txt');
  pdr955 = GetStableRegionPdrArray('HETRO95_stable_pdr_rd5.txt');
  pdr95 = [pdr951; pdr952;pdr953; pdr954; pdr955];
  save pdr_samples.mat
end

if (PRKS_LARGE_5_ROUND == 1)
	pdr951 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd1.txt');
	pdr952 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd2.txt');
	pdr953 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd3.txt');
	pdr954 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd4.txt');
	pdr95 = [pdr951; pdr952;pdr953; pdr954];

	pdr901 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd1.txt');
	pdr902 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd2.txt');
	pdr903 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd3.txt');
	pdr904 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd4.txt');
	pdr90 = [pdr901; pdr902;pdr903; pdr904];

	pdr801 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd1.txt');
	pdr802 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd2.txt');
	pdr803 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd3.txt');
	pdr804 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd4.txt');
	pdr80 = [pdr801; pdr802;pdr803; pdr804];

	pdr701 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd1.txt');
	pdr702 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd2.txt');
	pdr703 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd3.txt');
	pdr704 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd4.txt');
	pdr70 = [pdr701; pdr702;pdr703; pdr704];

  save pdr_samples.mat
end

if (MIXED_PRKS_10_ROUND == 1)
	[pdr701] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr702] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr703] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr704] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr705] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr706] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr707] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr708] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr709] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	[pdr7010] = textread('MIXED70_stable_pdr_rd1.txt', '%f');
	pdr70 = [pdr701;pdr702;pdr703;pdr704;pdr705;pdr706;pdr707;pdr708;pdr709;pdr7010;];

	[pdr801] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr802] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr803] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr804] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr805] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr806] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr807] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr808] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr809] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	[pdr8010] = textread('MIXED80_stable_pdr_rd1.txt', '%f');
	pdr80 = [pdr801;pdr802;pdr803;pdr804;pdr805;pdr806;pdr807;pdr808;pdr809;pdr8010;];

	[pdr901] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr902] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr903] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr904] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr905] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr906] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr907] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr908] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr909] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	[pdr9010] = textread('MIXED90_stable_pdr_rd1.txt', '%f');
	pdr90 = [pdr901;pdr902;pdr903;pdr904;pdr905;pdr906;pdr907;pdr908;pdr909;pdr9010;];

	[pdr951] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr952] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr953] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr954] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr955] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr956] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr957] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr958] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr959] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	[pdr9510] = textread('MIXED95_stable_pdr_rd1.txt', '%f');
	pdr95 = [pdr951;pdr952;pdr953;pdr954;pdr955;pdr956;pdr957;pdr958;pdr959;pdr9510;];
  save pdr_samples.mat
end

if (PRKS_LIGHT_5_ROUND == 1)
	pdr951 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd1.txt');
	pdr952 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd2.txt');
	pdr953 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd3.txt');
	pdr954 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd4.txt');
	pdr95 = [pdr951; pdr952;pdr953; pdr954];

	pdr901 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd1.txt');
	pdr902 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd2.txt');
	pdr903 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd3.txt');
	pdr904 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd4.txt');
	pdr90 = [pdr901; pdr902;pdr903; pdr904];

	pdr801 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd1.txt');
	pdr802 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd2.txt');
	pdr803 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd3.txt');
	pdr804 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd4.txt');
	pdr80 = [pdr801; pdr802;pdr803; pdr804];

	pdr701 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd1.txt');
	pdr702 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd2.txt');
	pdr703 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd3.txt');
	pdr704 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd4.txt');
	pdr70 = [pdr701; pdr702;pdr703; pdr704];

  save pdr_samples.mat
end
if (SMALL_HEAVY_TRAFFIC_BARGRAPH  == 1)
  %PRKS
  pdr_prks951 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd1.txt');
  pdr_prks952 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd2.txt');
  pdr_prks953 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd3.txt');
  pdr_prks954 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd4.txt');
  pdr_prks955 = GetStableRegionPdrArray('PRKS95_stable_pdr_rd5.txt');
  pdr_prks95 = [pdr_prks951;pdr_prks952;pdr_prks953;pdr_prks954;pdr_prks955]; 

  pdr_prks901 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd1.txt');
  pdr_prks902 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd2.txt');
  pdr_prks903 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd3.txt');
  pdr_prks904 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd4.txt');
  pdr_prks905 = GetStableRegionPdrArray('PRKS90_stable_pdr_rd5.txt');
  pdr_prks90 = [pdr_prks901;pdr_prks902;pdr_prks903;pdr_prks904;pdr_prks905]; 

  pdr_prks801 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd1.txt');
  pdr_prks802 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd2.txt');
  pdr_prks803 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd3.txt');
  pdr_prks804 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd4.txt');
  pdr_prks805 = GetStableRegionPdrArray('PRKS80_stable_pdr_rd5.txt');
  pdr_prks80 = [pdr_prks801;pdr_prks802;pdr_prks803;pdr_prks804;pdr_prks805]; 

  pdr_prks701 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd1.txt');
  pdr_prks702 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd2.txt');
  pdr_prks703 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd3.txt');
  pdr_prks704 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd4.txt');
  pdr_prks705 = GetStableRegionPdrArray('PRKS70_stable_pdr_rd5.txt');
  pdr_prks70 = [pdr_prks701;pdr_prks702;pdr_prks703;pdr_prks704;pdr_prks705]; 

  %RID
  pdr_rid951 = GetStableRegionPdrArray('RID95_stable_pdr_rd1.txt');
  pdr_rid952 = GetStableRegionPdrArray('RID95_stable_pdr_rd2.txt');
  pdr_rid953 = GetStableRegionPdrArray('RID95_stable_pdr_rd3.txt');
  pdr_rid954 = GetStableRegionPdrArray('RID95_stable_pdr_rd4.txt');
  pdr_rid955 = GetStableRegionPdrArray('RID95_stable_pdr_rd5.txt');
  pdr_rid95 = [pdr_rid951;pdr_rid952;pdr_rid953;pdr_rid954;pdr_rid955]; 

  pdr_rid901 = GetStableRegionPdrArray('RID90_stable_pdr_rd1.txt');
  pdr_rid902 = GetStableRegionPdrArray('RID90_stable_pdr_rd2.txt');
  pdr_rid903 = GetStableRegionPdrArray('RID90_stable_pdr_rd3.txt');
  pdr_rid904 = GetStableRegionPdrArray('RID90_stable_pdr_rd4.txt');
  pdr_rid905 = GetStableRegionPdrArray('RID90_stable_pdr_rd5.txt');
  pdr_rid90 = [pdr_rid901;pdr_rid902;pdr_rid903;pdr_rid904;pdr_rid905]; 

  pdr_rid801 = GetStableRegionPdrArray('RID80_stable_pdr_rd1.txt');
  pdr_rid802 = GetStableRegionPdrArray('RID80_stable_pdr_rd2.txt');
  pdr_rid803 = GetStableRegionPdrArray('RID80_stable_pdr_rd3.txt');
  pdr_rid804 = GetStableRegionPdrArray('RID80_stable_pdr_rd4.txt');
  pdr_rid805 = GetStableRegionPdrArray('RID80_stable_pdr_rd5.txt');
  pdr_rid80 = [pdr_rid801;pdr_rid802;pdr_rid803;pdr_rid804;pdr_rid805]; 

  pdr_rid701 = GetStableRegionPdrArray('RID70_stable_pdr_rd1.txt');
  pdr_rid702 = GetStableRegionPdrArray('RID70_stable_pdr_rd2.txt');
  pdr_rid703 = GetStableRegionPdrArray('RID70_stable_pdr_rd3.txt');
  pdr_rid704 = GetStableRegionPdrArray('RID70_stable_pdr_rd4.txt');
  pdr_rid705 = GetStableRegionPdrArray('RID70_stable_pdr_rd5.txt');
  pdr_rid70 = [pdr_rid701;pdr_rid702;pdr_rid703;pdr_rid704;pdr_rid705]; 

  %CMAC
  pdr_cmac951 = GetStableRegionPdrArray('CMAC95_stable_pdr_rd1.txt');
  pdr_cmac952 = GetStableRegionPdrArray('CMAC95_stable_pdr_rd2.txt');
  pdr_cmac953 = GetStableRegionPdrArray('CMAC95_stable_pdr_rd3.txt');
  pdr_cmac954 = GetStableRegionPdrArray('CMAC95_stable_pdr_rd4.txt');
  pdr_cmac955 = GetStableRegionPdrArray('CMAC95_stable_pdr_rd5.txt');
  pdr_cmac95 = [pdr_cmac951;pdr_cmac952;pdr_cmac953;pdr_cmac954;pdr_cmac955]; 

  pdr_cmac901 = GetStableRegionPdrArray('CMAC90_stable_pdr_rd1.txt');
  pdr_cmac902 = GetStableRegionPdrArray('CMAC90_stable_pdr_rd2.txt');
  pdr_cmac903 = GetStableRegionPdrArray('CMAC90_stable_pdr_rd3.txt');
  pdr_cmac904 = GetStableRegionPdrArray('CMAC90_stable_pdr_rd4.txt');
  pdr_cmac905 = GetStableRegionPdrArray('CMAC90_stable_pdr_rd5.txt');
  pdr_cmac90 = [pdr_cmac901;pdr_cmac902;pdr_cmac903;pdr_cmac904;pdr_cmac905]; 

  pdr_cmac801 = GetStableRegionPdrArray('CMAC80_stable_pdr_rd1.txt');
  pdr_cmac802 = GetStableRegionPdrArray('CMAC80_stable_pdr_rd2.txt');
  pdr_cmac803 = GetStableRegionPdrArray('CMAC80_stable_pdr_rd3.txt');
  pdr_cmac804 = GetStableRegionPdrArray('CMAC80_stable_pdr_rd4.txt');
  pdr_cmac805 = GetStableRegionPdrArray('CMAC80_stable_pdr_rd5.txt');
  pdr_cmac80 = [pdr_cmac801;pdr_cmac802;pdr_cmac803;pdr_cmac804;pdr_cmac805]; 

  pdr_cmac701 = GetStableRegionPdrArray('CMAC70_stable_pdr_rd1.txt');
  pdr_cmac702 = GetStableRegionPdrArray('CMAC70_stable_pdr_rd2.txt');
  pdr_cmac703 = GetStableRegionPdrArray('CMAC70_stable_pdr_rd3.txt');
  pdr_cmac704 = GetStableRegionPdrArray('CMAC70_stable_pdr_rd4.txt');
  pdr_cmac705 = GetStableRegionPdrArray('CMAC70_stable_pdr_rd5.txt');
  pdr_cmac70 = [pdr_cmac701;pdr_cmac702;pdr_cmac703;pdr_cmac704;pdr_cmac705]; 

  %SCREAM
  pdr_scream1 = GetStableRegionPdrArray('SCREAM_stable_pdr_rd1.txt');
  pdr_scream2 = GetStableRegionPdrArray('SCREAM_stable_pdr_rd2.txt');
  pdr_scream3 = GetStableRegionPdrArray('SCREAM_stable_pdr_rd3.txt');
  pdr_scream4 = GetStableRegionPdrArray('SCREAM_stable_pdr_rd4.txt');
  pdr_scream5 = GetStableRegionPdrArray('SCREAM_stable_pdr_rd5.txt');
  pdr_scream = [pdr_scream1; pdr_scream2; pdr_scream3; pdr_scream4; pdr_scream5];

  %RTSCTS
  pdr_rtscts1 = GetStableRegionPdrArray('RTSCTS_stable_pdr_rd1.txt');
  pdr_rtscts2 = GetStableRegionPdrArray('RTSCTS_stable_pdr_rd2.txt');
  pdr_rtscts3 = GetStableRegionPdrArray('RTSCTS_stable_pdr_rd3.txt');
  pdr_rtscts4 = GetStableRegionPdrArray('RTSCTS_stable_pdr_rd4.txt');
  pdr_rtscts5 = GetStableRegionPdrArray('RTSCTS_stable_pdr_rd5.txt');
  pdr_rtscts = [pdr_rtscts1; pdr_rtscts2; pdr_rtscts3; pdr_rtscts4; pdr_rtscts5];

  %CSMA
  pdr_csma1 = GetStableRegionPdrArray('CSMA_stable_pdr_rd1.txt');
  pdr_csma2 = GetStableRegionPdrArray('CSMA_stable_pdr_rd2.txt');
  pdr_csma3 = GetStableRegionPdrArray('CSMA_stable_pdr_rd3.txt');
  pdr_csma4 = GetStableRegionPdrArray('CSMA_stable_pdr_rd4.txt');
  pdr_csma5 = GetStableRegionPdrArray('CSMA_stable_pdr_rd5.txt');
  pdr_csma = [pdr_csma1; pdr_csma2; pdr_csma3; pdr_csma4; pdr_csma5];

  save pdr_samples.mat
end
if (LARGE_HEAVY_TRAFFIC_BARGRAPH == 1)
  %PRKS
  pdr_prks951 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd1.txt');
  pdr_prks952 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd2.txt');
  pdr_prks953 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd3.txt');
  pdr_prks954 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd4.txt');
  pdr_prks955 = GetStableRegionPdrArray('PRKS95_LARGE_stable_pdr_rd5.txt');
  pdr_prks95 = [pdr_prks951;pdr_prks952;pdr_prks953;pdr_prks954;pdr_prks955]; 

  pdr_prks901 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd1.txt');
  pdr_prks902 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd2.txt');
  pdr_prks903 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd3.txt');
  pdr_prks904 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd4.txt');
  pdr_prks905 = GetStableRegionPdrArray('PRKS90_LARGE_stable_pdr_rd5.txt');
  pdr_prks90 = [pdr_prks901;pdr_prks902;pdr_prks903;pdr_prks904;pdr_prks905]; 

  pdr_prks801 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd1.txt');
  pdr_prks802 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd2.txt');
  pdr_prks803 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd3.txt');
  pdr_prks804 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd4.txt');
  pdr_prks805 = GetStableRegionPdrArray('PRKS80_LARGE_stable_pdr_rd5.txt');
  pdr_prks80 = [pdr_prks801;pdr_prks802;pdr_prks803;pdr_prks804;pdr_prks805]; 

  pdr_prks701 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd1.txt');
  pdr_prks702 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd2.txt');
  pdr_prks703 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd3.txt');
  pdr_prks704 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd4.txt');
  pdr_prks705 = GetStableRegionPdrArray('PRKS70_LARGE_stable_pdr_rd5.txt');
  pdr_prks70 = [pdr_prks701;pdr_prks702;pdr_prks703;pdr_prks704;pdr_prks705]; 

  %RID
  pdr_rid951 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd1.txt');
  pdr_rid952 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd2.txt');
  pdr_rid953 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd3.txt');
  pdr_rid954 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd4.txt');
  pdr_rid955 = GetStableRegionPdrArray('RID95_LARGE_stable_pdr_rd5.txt');
  pdr_rid95 = [pdr_rid951;pdr_rid952;pdr_rid953;pdr_rid954;pdr_rid955]; 

  pdr_rid901 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd1.txt');
  pdr_rid902 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd2.txt');
  pdr_rid903 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd3.txt');
  pdr_rid904 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd4.txt');
  pdr_rid905 = GetStableRegionPdrArray('RID90_LARGE_stable_pdr_rd5.txt');
  pdr_rid90 = [pdr_rid901;pdr_rid902;pdr_rid903;pdr_rid904;pdr_rid905]; 

  pdr_rid801 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd1.txt');
  pdr_rid802 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd2.txt');
  pdr_rid803 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd3.txt');
  pdr_rid804 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd4.txt');
  pdr_rid805 = GetStableRegionPdrArray('RID80_LARGE_stable_pdr_rd5.txt');
  pdr_rid80 = [pdr_rid801;pdr_rid802;pdr_rid803;pdr_rid804;pdr_rid805]; 

  pdr_rid701 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd1.txt');
  pdr_rid702 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd2.txt');
  pdr_rid703 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd3.txt');
  pdr_rid704 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd4.txt');
  pdr_rid705 = GetStableRegionPdrArray('RID70_LARGE_stable_pdr_rd5.txt');
  pdr_rid70 = [pdr_rid701;pdr_rid702;pdr_rid703;pdr_rid704;pdr_rid705]; 

  %CMAC
  pdr_cmac951 = GetStableRegionPdrArray('CMAC95_LARGE_stable_pdr_rd1.txt');
  pdr_cmac952 = GetStableRegionPdrArray('CMAC95_LARGE_stable_pdr_rd2.txt');
  pdr_cmac953 = GetStableRegionPdrArray('CMAC95_LARGE_stable_pdr_rd3.txt');
  pdr_cmac954 = GetStableRegionPdrArray('CMAC95_LARGE_stable_pdr_rd4.txt');
  pdr_cmac955 = GetStableRegionPdrArray('CMAC95_LARGE_stable_pdr_rd5.txt');
  pdr_cmac95 = [pdr_cmac951;pdr_cmac952;pdr_cmac953;pdr_cmac954;pdr_cmac955]; 

  pdr_cmac901 = GetStableRegionPdrArray('CMAC90_LARGE_stable_pdr_rd1.txt');
  pdr_cmac902 = GetStableRegionPdrArray('CMAC90_LARGE_stable_pdr_rd2.txt');
  pdr_cmac903 = GetStableRegionPdrArray('CMAC90_LARGE_stable_pdr_rd3.txt');
  pdr_cmac904 = GetStableRegionPdrArray('CMAC90_LARGE_stable_pdr_rd4.txt');
  pdr_cmac905 = GetStableRegionPdrArray('CMAC90_LARGE_stable_pdr_rd5.txt');
  pdr_cmac90 = [pdr_cmac901;pdr_cmac902;pdr_cmac903;pdr_cmac904;pdr_cmac905]; 

  pdr_cmac801 = GetStableRegionPdrArray('CMAC80_LARGE_stable_pdr_rd1.txt');
  pdr_cmac802 = GetStableRegionPdrArray('CMAC80_LARGE_stable_pdr_rd2.txt');
  pdr_cmac803 = GetStableRegionPdrArray('CMAC80_LARGE_stable_pdr_rd3.txt');
  pdr_cmac804 = GetStableRegionPdrArray('CMAC80_LARGE_stable_pdr_rd4.txt');
  pdr_cmac805 = GetStableRegionPdrArray('CMAC80_LARGE_stable_pdr_rd5.txt');
  pdr_cmac80 = [pdr_cmac801;pdr_cmac802;pdr_cmac803;pdr_cmac804;pdr_cmac805]; 

  pdr_cmac701 = GetStableRegionPdrArray('CMAC70_LARGE_stable_pdr_rd1.txt');
  pdr_cmac702 = GetStableRegionPdrArray('CMAC70_LARGE_stable_pdr_rd2.txt');
  pdr_cmac703 = GetStableRegionPdrArray('CMAC70_LARGE_stable_pdr_rd3.txt');
  pdr_cmac704 = GetStableRegionPdrArray('CMAC70_LARGE_stable_pdr_rd4.txt');
  pdr_cmac705 = GetStableRegionPdrArray('CMAC70_LARGE_stable_pdr_rd5.txt');
  pdr_cmac70 = [pdr_cmac701;pdr_cmac702;pdr_cmac703;pdr_cmac704;pdr_cmac705]; 

  %SCREAM
  pdr_scream1 = GetStableRegionPdrArray('SCREAM_LARGE_stable_pdr_rd1.txt');
  pdr_scream2 = GetStableRegionPdrArray('SCREAM_LARGE_stable_pdr_rd2.txt');
  pdr_scream3 = GetStableRegionPdrArray('SCREAM_LARGE_stable_pdr_rd3.txt');
  pdr_scream4 = GetStableRegionPdrArray('SCREAM_LARGE_stable_pdr_rd4.txt');
  pdr_scream5 = GetStableRegionPdrArray('SCREAM_LARGE_stable_pdr_rd5.txt');
  pdr_scream = [pdr_scream1; pdr_scream2; pdr_scream3; pdr_scream4; pdr_scream5];

  %RTSCTS
  pdr_rtscts1 = GetStableRegionPdrArray('RTSCTS_LARGE_stable_pdr_rd1.txt');
  pdr_rtscts2 = GetStableRegionPdrArray('RTSCTS_LARGE_stable_pdr_rd2.txt');
  pdr_rtscts3 = GetStableRegionPdrArray('RTSCTS_LARGE_stable_pdr_rd3.txt');
  pdr_rtscts4 = GetStableRegionPdrArray('RTSCTS_LARGE_stable_pdr_rd4.txt');
  pdr_rtscts5 = GetStableRegionPdrArray('RTSCTS_LARGE_stable_pdr_rd5.txt');
  pdr_rtscts = [pdr_rtscts1; pdr_rtscts2; pdr_rtscts3; pdr_rtscts4; pdr_rtscts5];

  %CSMA
  pdr_csma1 = GetStableRegionPdrArray('CSMA_LARGE_stable_pdr_rd1.txt');
  pdr_csma2 = GetStableRegionPdrArray('CSMA_LARGE_stable_pdr_rd2.txt');
  pdr_csma3 = GetStableRegionPdrArray('CSMA_LARGE_stable_pdr_rd3.txt');
  pdr_csma4 = GetStableRegionPdrArray('CSMA_LARGE_stable_pdr_rd4.txt');
  pdr_csma5 = GetStableRegionPdrArray('CSMA_LARGE_stable_pdr_rd5.txt');
  pdr_csma = [pdr_csma1; pdr_csma2; pdr_csma3; pdr_csma4; pdr_csma5];
  
  save pdr_samples.mat
end
if (SMALL_LIGHT_TRAFFIC_BARGRAPH == 1)
  %PRKS
  pdr_prks951 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd1.txt');
  pdr_prks952 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd2.txt');
  pdr_prks953 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd3.txt');
  pdr_prks954 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd4.txt');
  pdr_prks955 = GetStableRegionPdrArray('PRKS95_LIGHT_stable_pdr_rd5.txt');
  pdr_prks95 = [pdr_prks951;pdr_prks952;pdr_prks953;pdr_prks954;pdr_prks955]; 

  pdr_prks901 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd1.txt');
  pdr_prks902 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd2.txt');
  pdr_prks903 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd3.txt');
  pdr_prks904 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd4.txt');
  pdr_prks905 = GetStableRegionPdrArray('PRKS90_LIGHT_stable_pdr_rd5.txt');
  pdr_prks90 = [pdr_prks901;pdr_prks902;pdr_prks903;pdr_prks904;pdr_prks905]; 

  pdr_prks801 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd1.txt');
  pdr_prks802 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd2.txt');
  pdr_prks803 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd3.txt');
  pdr_prks804 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd4.txt');
  pdr_prks805 = GetStableRegionPdrArray('PRKS80_LIGHT_stable_pdr_rd5.txt');
  pdr_prks80 = [pdr_prks801;pdr_prks802;pdr_prks803;pdr_prks804;pdr_prks805]; 

  pdr_prks701 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd1.txt');
  pdr_prks702 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd2.txt');
  pdr_prks703 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd3.txt');
  pdr_prks704 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd4.txt');
  pdr_prks705 = GetStableRegionPdrArray('PRKS70_LIGHT_stable_pdr_rd5.txt');
  pdr_prks70 = [pdr_prks701;pdr_prks702;pdr_prks703;pdr_prks704;pdr_prks705]; 

  %RID
  pdr_rid951 = GetStableRegionPdrArray('RID95_LIGHT_stable_pdr_rd1.txt');
  pdr_rid952 = GetStableRegionPdrArray('RID95_LIGHT_stable_pdr_rd2.txt');
  pdr_rid953 = GetStableRegionPdrArray('RID95_LIGHT_stable_pdr_rd3.txt');
  pdr_rid954 = GetStableRegionPdrArray('RID95_LIGHT_stable_pdr_rd4.txt');
  pdr_rid955 = GetStableRegionPdrArray('RID95_LIGHT_stable_pdr_rd5.txt');
  pdr_rid95 = [pdr_rid951;pdr_rid952;pdr_rid953;pdr_rid954;pdr_rid955]; 

  pdr_rid901 = GetStableRegionPdrArray('RID90_LIGHT_stable_pdr_rd1.txt');
  pdr_rid902 = GetStableRegionPdrArray('RID90_LIGHT_stable_pdr_rd2.txt');
  pdr_rid903 = GetStableRegionPdrArray('RID90_LIGHT_stable_pdr_rd3.txt');
  pdr_rid904 = GetStableRegionPdrArray('RID90_LIGHT_stable_pdr_rd4.txt');
  pdr_rid905 = GetStableRegionPdrArray('RID90_LIGHT_stable_pdr_rd5.txt');
  pdr_rid90 = [pdr_rid901;pdr_rid902;pdr_rid903;pdr_rid904;pdr_rid905]; 

  pdr_rid801 = GetStableRegionPdrArray('RID80_LIGHT_stable_pdr_rd1.txt');
  pdr_rid802 = GetStableRegionPdrArray('RID80_LIGHT_stable_pdr_rd2.txt');
  pdr_rid803 = GetStableRegionPdrArray('RID80_LIGHT_stable_pdr_rd3.txt');
  pdr_rid804 = GetStableRegionPdrArray('RID80_LIGHT_stable_pdr_rd4.txt');
  pdr_rid805 = GetStableRegionPdrArray('RID80_LIGHT_stable_pdr_rd5.txt');
  pdr_rid80 = [pdr_rid801;pdr_rid802;pdr_rid803;pdr_rid804;pdr_rid805]; 

  pdr_rid701 = GetStableRegionPdrArray('RID70_LIGHT_stable_pdr_rd1.txt');
  pdr_rid702 = GetStableRegionPdrArray('RID70_LIGHT_stable_pdr_rd2.txt');
  pdr_rid703 = GetStableRegionPdrArray('RID70_LIGHT_stable_pdr_rd3.txt');
  pdr_rid704 = GetStableRegionPdrArray('RID70_LIGHT_stable_pdr_rd4.txt');
  pdr_rid705 = GetStableRegionPdrArray('RID70_LIGHT_stable_pdr_rd5.txt');
  pdr_rid70 = [pdr_rid701;pdr_rid702;pdr_rid703;pdr_rid704;pdr_rid705]; 

  %CMAC
  pdr_cmac951 = GetStableRegionPdrArray('CMAC95_LIGHT_stable_pdr_rd1.txt');
  pdr_cmac952 = GetStableRegionPdrArray('CMAC95_LIGHT_stable_pdr_rd2.txt');
  pdr_cmac953 = GetStableRegionPdrArray('CMAC95_LIGHT_stable_pdr_rd3.txt');
  pdr_cmac954 = GetStableRegionPdrArray('CMAC95_LIGHT_stable_pdr_rd4.txt');
  pdr_cmac955 = GetStableRegionPdrArray('CMAC95_LIGHT_stable_pdr_rd5.txt');
  pdr_cmac95 = [pdr_cmac951;pdr_cmac952;pdr_cmac953;pdr_cmac954;pdr_cmac955]; 

  pdr_cmac901 = GetStableRegionPdrArray('CMAC90_LIGHT_stable_pdr_rd1.txt');
  pdr_cmac902 = GetStableRegionPdrArray('CMAC90_LIGHT_stable_pdr_rd2.txt');
  pdr_cmac903 = GetStableRegionPdrArray('CMAC90_LIGHT_stable_pdr_rd3.txt');
  pdr_cmac904 = GetStableRegionPdrArray('CMAC90_LIGHT_stable_pdr_rd4.txt');
  pdr_cmac905 = GetStableRegionPdrArray('CMAC90_LIGHT_stable_pdr_rd5.txt');
  pdr_cmac90 = [pdr_cmac901;pdr_cmac902;pdr_cmac903;pdr_cmac904;pdr_cmac905]; 

  pdr_cmac801 = GetStableRegionPdrArray('CMAC80_LIGHT_stable_pdr_rd1.txt');
  pdr_cmac802 = GetStableRegionPdrArray('CMAC80_LIGHT_stable_pdr_rd2.txt');
  pdr_cmac803 = GetStableRegionPdrArray('CMAC80_LIGHT_stable_pdr_rd3.txt');
  pdr_cmac804 = GetStableRegionPdrArray('CMAC80_LIGHT_stable_pdr_rd4.txt');
  pdr_cmac805 = GetStableRegionPdrArray('CMAC80_LIGHT_stable_pdr_rd5.txt');
  pdr_cmac80 = [pdr_cmac801;pdr_cmac802;pdr_cmac803;pdr_cmac804;pdr_cmac805]; 

  pdr_cmac701 = GetStableRegionPdrArray('CMAC70_LIGHT_stable_pdr_rd1.txt');
  pdr_cmac702 = GetStableRegionPdrArray('CMAC70_LIGHT_stable_pdr_rd2.txt');
  pdr_cmac703 = GetStableRegionPdrArray('CMAC70_LIGHT_stable_pdr_rd3.txt');
  pdr_cmac704 = GetStableRegionPdrArray('CMAC70_LIGHT_stable_pdr_rd4.txt');
  pdr_cmac705 = GetStableRegionPdrArray('CMAC70_LIGHT_stable_pdr_rd5.txt');
  pdr_cmac70 = [pdr_cmac701;pdr_cmac702;pdr_cmac703;pdr_cmac704;pdr_cmac705]; 

  %SCREAM
  pdr_scream1 = GetStableRegionPdrArray('SCREAM_LIGHT_stable_pdr_rd1.txt');
  pdr_scream2 = GetStableRegionPdrArray('SCREAM_LIGHT_stable_pdr_rd2.txt');
  pdr_scream3 = GetStableRegionPdrArray('SCREAM_LIGHT_stable_pdr_rd3.txt');
  pdr_scream4 = GetStableRegionPdrArray('SCREAM_LIGHT_stable_pdr_rd4.txt');
  pdr_scream5 = GetStableRegionPdrArray('SCREAM_LIGHT_stable_pdr_rd5.txt');
  pdr_scream = [pdr_scream1; pdr_scream2; pdr_scream3; pdr_scream4; pdr_scream5];

  %RTSCTS
  pdr_rtscts1 = GetStableRegionPdrArray('RTSCTS_LIGHT_stable_pdr_rd1.txt');
  pdr_rtscts2 = GetStableRegionPdrArray('RTSCTS_LIGHT_stable_pdr_rd2.txt');
  pdr_rtscts3 = GetStableRegionPdrArray('RTSCTS_LIGHT_stable_pdr_rd3.txt');
  pdr_rtscts4 = GetStableRegionPdrArray('RTSCTS_LIGHT_stable_pdr_rd4.txt');
  pdr_rtscts5 = GetStableRegionPdrArray('RTSCTS_LIGHT_stable_pdr_rd5.txt');
  pdr_rtscts = [pdr_rtscts1; pdr_rtscts2; pdr_rtscts3; pdr_rtscts4; pdr_rtscts5];

  %CSMA
  pdr_csma1 = GetStableRegionPdrArray('CSMA_LIGHT_stable_pdr_rd1.txt');
  pdr_csma2 = GetStableRegionPdrArray('CSMA_LIGHT_stable_pdr_rd2.txt');
  pdr_csma3 = GetStableRegionPdrArray('CSMA_LIGHT_stable_pdr_rd3.txt');
  pdr_csma4 = GetStableRegionPdrArray('CSMA_LIGHT_stable_pdr_rd4.txt');
  pdr_csma5 = GetStableRegionPdrArray('CSMA_LIGHT_stable_pdr_rd5.txt');
  pdr_csma = [pdr_csma1; pdr_csma2; pdr_csma3; pdr_csma4; pdr_csma5];
  
  save pdr_samples.mat
end
if VARIANTS_1_ROUND_BARGRAPH == 1
  pdr_prks95 = GetStableRegionPdrArray ('PRKS95_stable_pdr_rd1.txt');
  pdr_prks90 = GetStableRegionPdrArray ('PRKS90_stable_pdr_rd1.txt');
  pdr_prks80 = GetStableRegionPdrArray ('PRKS80_stable_pdr_rd1.txt');
  pdr_prks70 = GetStableRegionPdrArray ('PRKS70_stable_pdr_rd1.txt');
  
  pdr_prks_l95 = GetStableRegionPdrArray ('PRKS_L95_stable_pdr_rd1.txt');
  pdr_prks_l90 = GetStableRegionPdrArray ('PRKS_L90_stable_pdr_rd1.txt');
  pdr_prks_l80 = GetStableRegionPdrArray ('PRKS_L80_stable_pdr_rd1.txt');
  pdr_prks_l70 = GetStableRegionPdrArray ('PRKS_L70_stable_pdr_rd1.txt');

  pdr_prks_r95 = GetStableRegionPdrArray ('PRKS_R95_stable_pdr_rd1.txt');
  pdr_prks_r90 = GetStableRegionPdrArray ('PRKS_R90_stable_pdr_rd1.txt');
  pdr_prks_r80 = GetStableRegionPdrArray ('PRKS_R80_stable_pdr_rd1.txt');
  pdr_prks_r70 = GetStableRegionPdrArray ('PRKS_R70_stable_pdr_rd1.txt');

  save pdr_samples.mat
end
